package com.chefu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chefu.system.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-30
 */
public interface RoleMapper extends BaseMapper<Role> {


    void insertRoleAndModule(@Param("roleId") Long roleId,@Param("moduleIds") List<Long> moduleIds);


    void deleteByRoleId(Long roleId);

    List<Role> findUserRoleByUserId(Long userId);


}
